#include "task_model.h"


static TASKSTATE TASKAPI(Demo1TaskInit)(struct TaskModel_t *vtask){

	printf("Demo1TaskInit_name : %s \n",vtask->name);

    return vtask->state;
}

static TASKSTATE TASKAPI(Demo1TaskRun)(struct TaskModel_t *vtask){



    printf("Demo1TaskRun_name : %s rrrrrrr\n",vtask->name);
    TASK_SET_DELAY(vtask, 100);
    return vtask->state;
}

static TASKSTATE TASKAPI(Demo1TaskWait)(struct TaskModel_t *vtask){

    
    
    // printf("Demo1TaskWait_name : %s \n",vtask->name);
    return vtask->state;
}

struct TaskModel_t demo1_task=
{
    "demo1_task", &TASKAPI(Demo1TaskInit), &TASKAPI(Demo1TaskRun), &TASKAPI(Demo1TaskWait), SSTATE_RUNNING, 100,
};